package com.fansz.FanszAPI.utils;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Created by root on 15-10-12.
 */
@ConfigurationProperties(prefix = "user.length")
public class CommonConstants {

    public static String SUCCESS_CODE = "0";

    public static String FAIL_CODE = "1";

    public static String SUCCESS_INFO = "SUCCESS";

    public static String REGISTRR_FAIL = "register fail!";

    public static String USER_TYPE_MOBILE = "0";

    public static String USER_TYPE_MAIL = "1";

    public static String SERVER_ERROR = "40004";

    public static String SERVER_ERROR_INFO = "Server Error";

    public static String PARAM_CHECK_FAIL = "50002";

    public static String PARAM_CHECK_FAIL_INFO = "Parameters Error";

    public static String USER_NOT_EXSIT = "60001";

    public static String USER_NOT_EXSIT_INFO = "User is not exsit";

    public static String USER_EXSIT = "60002";

    public static String USER_EXSIT_INFO = "User is already exist";

    public static String SESSION_TIME_OUT = "40002";

    public static String SESSION_TIME_OUT_INFO = "Session time out";

    public static int mobile = 20;

    public static int mail = 20;

    public static int passWord = 20;

    public static int nickName = 20;

    public static int deviceId = 64;

    public static int timeStamp = 30;

    public static int topic_content = 500;

    public static int topic_title = 200;

    public static int top_num = 10;

}
